package com.sg.dto.biz.framework.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

@Data
public class MergeInductionRecordDto extends BaseDto implements Serializable {

    /**
     * 就职记录ID:
     */
    @ApiModelProperty("就职记录ID")
    private String inductionRecordId;

    /**
     * 身份人员ID:
     */
    @ApiModelProperty("身份人员ID")
    private String originalRoleMemberId;
    /**
     * 可选主管就职记录ID:
     */
    @ApiModelProperty("可选主管就职记录ID")
    private String directorInductionRecordId;

    /**
     * 个人账号ID:
     */
    @ApiModelProperty("个人账号ID")
    private String userId;

    /**
     * 组织ID:
     */
    @ApiModelProperty("组织ID")
    private String organizationId;

    /**
     * 冗余组织名称:
     */
    @ApiModelProperty("冗余组织名称")
    private String organizationName;

    /**
     * 备注首位字母:
     */
    @ApiModelProperty("备注首位字母")
    private String firstLetter;

    /**
     * 冗余部门名称:
     */
    @ApiModelProperty("冗余部门名称")
    private String deptShortName;

    /**
     * 必选冗余职务名称:
     */
    @ApiModelProperty("必选冗余职务名称")
    private String positionIdName;

    /**
     * 就职单位对象实例ID:
     */
    @ApiModelProperty("就职单位对象实例ID")
    private String entityId;

    /**
     * 是否主管 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否主管")
    private String isDirector;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof MergeInductionRecordDto)) return false;
        if (!super.equals(o)) return false;
        MergeInductionRecordDto that = (MergeInductionRecordDto) o;
        return Objects.equals(inductionRecordId, that.inductionRecordId) && Objects.equals(originalRoleMemberId, that.originalRoleMemberId) && Objects.equals(directorInductionRecordId, that.directorInductionRecordId) && Objects.equals(userId, that.userId) && Objects.equals(organizationId, that.organizationId) && Objects.equals(organizationName, that.organizationName) && Objects.equals(firstLetter, that.firstLetter) && Objects.equals(deptShortName, that.deptShortName) && Objects.equals(positionIdName, that.positionIdName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), inductionRecordId, originalRoleMemberId, directorInductionRecordId, userId, organizationId, organizationName, firstLetter, deptShortName, positionIdName);
    }

}
